//
//  TRImageItemCollectionViewCell.m
//  WeiMiLan
//
//  Created by anan on 15/3/13.
//  Copyright (c) 2015年 Mac. All rights reserved.
//

#import "TRImageItemCollectionViewCell.h"

@implementation TRImageItemCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setInfo:(NSDictionary *)info
{
    _info = info;
    if (info==nil) {
        self.buttonAdd.hidden = NO;
        self.buttonDelete.hidden = YES;
    }else{
        self.buttonAdd.hidden = YES;
        self.buttonDelete.hidden = NO;
        if ([info ql_hasObjectForKey:@"PIC_URL"]) {
            [self.imageViewIcon setImageWithURL:[NSURL URLWithString:info[@"PIC_URL"]] placeholderImage:[UIImage imageNamed:@"nodata_public"]];
        }else{
            [self.imageViewIcon setImage:info[@"image"]];
        }
    }

}

@end
